/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package travelmatching;

/**
 *
 * @author Dominik Kopec
 */
public class Address {

    private int houseAptNum;
    private String street;
    private String city;
    private String province;
    private String postCode;

    public Address() {
        houseAptNum = 0;
        street = "";
        city = "";
        province = "";
        postCode = "";
    }

    public Address(Integer strnum, String str, String cty, String prov, String post) {
        houseAptNum = strnum;
        street = str.trim().toUpperCase();
        city = cty.trim().toUpperCase();
        province = prov.trim().toUpperCase();
        postCode = post.replaceAll("\\s+", "").toUpperCase();
    }

    @Override
    public String toString() {
        return houseAptNum + " " + street + "," + city + "," + province + "," + postCode;
    }

    void startLoc() {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    void edingLoc() {
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
